import qs from 'qs'
import request from './request'

// export const MvApi=()=>request.get('/personalized/djprogram')
export const BannerApi = () => request.get('/banner')
export const HotApi = () => request.get('/personalized?limit=8')
export const NewApi = () => request.get('/album/newest')
// export const SongerApi = () => request.get('/dj/toplist/popular')
export const LoginApi=(params)=>request.get(`/login/cellphone?phone=${params.phone}&password=${params.password}`)
export const UserInfoApi=(params)=>request.get(`/user/detail?uid=${params.id}`)
export const SongerApi=()=>request.get('/top/artists?offset=0&limit=5')
export const BdApi=()=>request.get('/toplist/detail')
export const reqPlayList = (id, cookie) => request( `/playlist/detail?id=${id}&cookie=${cookie}`);
export const BfApi =(id)=>request.get(`/song/url?id=${id}`)
export const reqUserPlayList = (uid) => request({ url: `/user/playlist?uid=${uid}`, method: 'GET' })
export const reqAllList = (id) => request({ url: `/playlist/track/all?id=${id}`, method: 'GET' });
